<!--
 * @Author: 孙开源 && sunkaiyuan@namenode.cn
 * @Date: 2023-02-07 08:50:23
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @LastEditTime: 2023-07-17 15:33:43
 * @Description: 
 * 
-->
<template>
  <sk-select :apiObj="url" :dicparams="params" />
</template>

<script>
import skSelect from "./../skSelect";

export default {
  props: {
    code: { type: String, default: () => "" },
  },
  components: { skSelect },
  data() {
    return {
      url: this.$API.basedata.unit.list,
      params: {
        filter: [
          {
            "category.code": this.code,
          },
        ],
      },
    };
  },
};
</script>
